/*
 *  Copyright 2024 Collate.
 *  Licensed under the Apache License, Version 2.0 (the "License");
 *  you may not use this file except in compliance with the License.
 *  You may obtain a copy of the License at
 *  http://www.apache.org/licenses/LICENSE-2.0
 *  Unless required by applicable law or agreed to in writing, software
 *  distributed under the License is distributed on an "AS IS" BASIS,
 *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *  See the License for the specific language governing permissions and
 *  limitations under the License.
 */

@import (reference) '../../../../styles/variables.less';

.table-constraint-form-container {
  margin-bottom: 20px;
  position: relative;
  background: @grey-6;
  padding: 20px;
  border-radius: 10px;
  border: @global-border;

  .ant-form-item {
    &:last-child {
      margin-bottom: 0;
    }
  }

  .delete-constraint-button {
    position: absolute;
    top: 10px;
    right: 12px;
  }

  &:last-child {
    margin-bottom: 0;
  }
}

.constraint-breadcrumb {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 6px 0;

  .constraint-breadcrumb-item {
    font-size: 12px;
    max-width: 140px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: @text-grey-muted;
    font-weight: 500;
  }

  .constraint-column-name {
    max-width: 100%;
    font-size: 14px;
    font-weight: 600;
  }
}
